/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * 
 * Project Name:itsm-gateway
 * Create Time: 2016年3月1日 上午9:31:18
 */
package com.lenovo.lmrp.server.itsmgateway.mock;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.lenovo.lmrp.api.itsmgateway.IItsmTicket;
import com.lenovo.lmrp.api.model.RestResponse;
import com.lenovo.lmrp.api.model.entity.TicketPO;
import com.lenovo.lmrp.api.model.view.AttachmentVO;
import com.lenovo.lmrp.api.model.view.ChangedTicketVO;
import com.lenovo.lmrp.api.model.view.PartsVO;
import com.lenovo.lmrp.api.model.view.TicketVO;
import com.lenovo.sdc.framework.util.EncryptUtil;
import com.lenovo.sdc.framework.util.PageData;

/**
 * 
 * @author wujin
 * @version v1.0
 */
public class ItsmTicketImpl implements IItsmTicket {

	@Override
	public RestResponse<Integer> updateTicket(String itsmcode, String ticketid, String action,
			ChangedTicketVO changedTicketVO) {
		return new RestResponse<Integer>(0, "OK", 0);
	}


	@Override
	public RestResponse<String> createAttachment(String itsmcode, String ticketid, AttachmentVO attachmentVO) {
		return new RestResponse<String>(0, "OK", EncryptUtil.getUUID());
	}

	@Override
	public RestResponse<String> openTicket(String itsmcode, TicketVO ticket) {
		return new RestResponse<String>(0, "OK", EncryptUtil.getUUID());
	}

    @Override
    public RestResponse<Integer> replaceParts(String itsmcode, String ticketid, List<PartsVO> parts) {
        return new RestResponse<Integer>(0, "OK", 0);
    }

    @Override
    public RestResponse<Integer> updateAttachment(String itsmCode, String ticketid, String attachmentid,
                                                  AttachmentVO attachmentVO) {
        return new RestResponse<Integer>(0, "OK", 0);
    }

    @Override
    public RestResponse<Integer> syncAttachment(String itsmCode, String ticketid) {
        return new RestResponse<Integer>(0, "OK", 0);
    }

    @Override
    public RestResponse<List<AttachmentVO>> listAttachment(String itsmCode, String ticketid, int status, String types) {
        return new RestResponse<List<AttachmentVO>>(0, "OK", new ArrayList<AttachmentVO>());
    }


    /** 
     * @see com.lenovo.lmrp.api.itsmgateway.IItsmTicket#getAttachment(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public RestResponse<AttachmentVO> getAttachment(String itsmCode, String ticketid, String attachmentid) {
        return new RestResponse<AttachmentVO>(0, "OK", new AttachmentVO());
    }


    /** 
     * @see com.lenovo.lmrp.api.itsmgateway.IItsmTicket#getParts(java.lang.String, java.lang.String, java.lang.String)
     */
    @Override
    public RestResponse<PartsVO> getParts(String itsmCode, String ticketid, String partnum) {
        return null;
    }


    /** 
     * @see com.lenovo.lmrp.api.itsmgateway.IItsmTicket#listParts(java.lang.String, java.lang.String)
     */
    @Override
    public RestResponse<List<PartsVO>> listParts(String itsmCode, String ticketid) {
        return null;
    }


    /** 
     * @see com.lenovo.lmrp.api.itsmgateway.IItsmTicket#getTicket(java.lang.String, java.lang.String)
     */
    @Override
    public RestResponse<TicketVO> getTicket(String itsmCode, String ticketID) {
        return null;
    }


	@Override
	public RestResponse<PageData<TicketPO>> listTicket(String itsmCode, String id, String projectName, String status,
			int page, int rows) {
		// TODO Auto-generated method stub
		return null;
	}


	/* (non-Javadoc)
	 * @see com.lenovo.lmrp.api.itsmgateway.IItsmTicket#updateTicketExtense(java.lang.String, java.lang.String, java.util.Map)
	 */
	@Override
	public RestResponse<Integer> updateTicketExtense(String itsmcode, String ticketid, Map<String, Object> extense) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public RestResponse<TicketPO> getTicketExt(String itsmCode, String ticketid) {
		// TODO Auto-generated method stub
		return null;
	}

}
